package cn.yunyichina.provider.framework.dubbo.service;

import cn.yunyichina.provider.framework.data.SpringContextHandler;
import cn.yunyichina.provider.iface.entity.common.Response;
import cn.yunyichina.provider.iface.service.IBed;

public class BedService {

	static final String serviceName = "bedService";

    static IBed bedService = null;

    static {
    	bedService = (IBed) SpringContextHandler.getBean(serviceName);
    }
    
    public static IBed getBaseClient(){
    	return bedService;
    }

    public static Response callUnderlineFromInternal(String method, String data) {
        return bedService.callUnderlineFromInternal("", method, data, (short) 0);
    }

    public static Response callUnderlineFromInternal(String sessionId, String method, String data) {
        return bedService.callUnderlineFromInternal(sessionId, method, data, (short) 0);
    }

    public static Response callHumpFromInternal(String sessionId, String method, String data) {
        return bedService.callHumpFromInternal(sessionId, method, data, (short) 0);
    }

    public static Response callHumpFromInternal(String method, String data) {
        return bedService.callHumpFromInternal("", method, data, (short) 0);
    }
}
